
TEMPLATE = app
TARGET = MyTest

QT += core testlib

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += console
CONFIG(release, release|debug): {
    DESTDIR = ../Release
}
else: {
    DESTDIR = ../Debug
}

DEFINES += QT_DLL
INCLUDEPATH += ../Utils

CONFIG(release, release|debug): {
    LIBS += -L'../Release' -lUtils
}
else: {
    LIBS += -L'../Debug' -lUtils
}

PRECOMPILED_HEADER = StdAfx.h

HEADERS += ./stdafx.h \
    $$PWD/profilertest.h \
    $$PWD/QTestRunner.h
	
SOURCES += ./main.cpp \
    ./stdafx.cpp \
    $$PWD/profilertest.cpp \
    $$PWD/QTestRunner.cpp

win32 {
    greaterThan(QT_MAJOR_VERSION, 4): {
    LIBS += -L$$PWD/'../Visual Leak Detector/lib/Win64/' -lvld
    INCLUDEPATH += $$PWD/'../Visual Leak Detector/lib/Win64'
    INCLUDEPATH += $$PWD/'../Visual Leak Detector/include'
    DEPENDPATH += $$PWD/'../Visual Leak Detector/lib/Win64'
    } 
	else: {
    LIBS += -L$$PWD/'../Visual Leak Detector/lib/Win32/' -lvld
    INCLUDEPATH += $$PWD/'../Visual Leak Detector/lib/Win32'
    INCLUDEPATH += $$PWD/'../Visual Leak Detector/include'
    DEPENDPATH += $$PWD/'../Visual Leak Detector/lib/Win32'
    }
}
